{layout layout_main.html}
<div id="theme">
	<h3>设置模板</h3>
	<ul class="tab">
		<li><a href="theme.html" class="selected">管理模板</a></li>
		<li><a href="theme_install.html">获取更多模板</a></li>
	</ul>
	<!--{$site_config['site_theme']}-->
	{php}$template = Admin::run()->template_list($site_config['site_theme']);{/php}
	{if $template}
	<div class="enable">
		<h2>当前启用的模板</h2>
		<p><img src="{Esite::app()->baseurl}{$template['logo']}" width="280" height="175"></p>
		<dl>
			<dt>{$template['title']}</dt>
			<dd>平台：{$template['device']}</dd>
			<dd>关键词：{$template['keywords']}</dd>
			<dd>简介：{$template['description']}</dd>
		</dl>
	</div>
	{/if}
	<div class="themeList">
	{loop Admin::run()->template_list() $name $template}
		<dl>
			<p><img src="{Esite::app()->baseurl}{$template['logo']}" width="280" height="175"></p>
			<dt>{$template['title']}</dt>
			<dd>平台：{$template['device']}
				{if $name!=$site_config['site_theme']}
				<a class="pull-right" href="javascript:;">启用模板</a>
				{/if}
			</dd>
			<dd>关键词：{$template['keywords']}</dd>
			<dd>简介：{$template['description']}</dd>
		</dl>
	{/loop}
	</div>
	<div class="clearfix"></div>
</div>